package com.firebird.app.kotlin.stock.trend.bean

import java.io.Serializable


/**
 * 股票实时数据实体类
 * @author ljk
 * @date   2019年11月18日
 */
class Stock : Serializable {
    var id: Long = 0
    var code //股票编号
            : String? = null
    var name //股票名称
            : String? = null
    var openPrice //开盘价
            = 0f
    var closePrice //收盘价
            = 0f
    var nowPrice //当前价
            = 0f
    private var lPrice //最低价
            = 0f
    private var hPrice //最高价
            = 0f
    var competitivePri //竞买价
            = 0f
    var reservePri //竞卖价
            = 0f
    var traVolume //成交量
            : Long = 0
    var traAmount //成交金额
            : Long = 0
    var buyOne //买一
            = 0
    var buyOnePrice //买一报价
            = 0f
    var buyTwo = 0
    var buyTwoPrice = 0f
    var buyThree = 0
    var buyThreePrice = 0f
    var buyFour = 0
    var buyFourPrice = 0f
    var buyFive = 0
    var buyFivePrice = 0f
    var sellOne //卖一
            = 0
    var sellOnePrice //卖一报价
            = 0f
    var sellTwo = 0
    var sellTwoPrice = 0f
    var sellThree = 0
    var sellThreePrice = 0f
    var sellFour = 0
    var sellFourPrice = 0f
    var sellFive = 0
    var sellFivePrice = 0f
    var date: String? = null
    var time: String? = null

    fun getlPrice(): Float {
        return lPrice
    }

    fun setlPrice(lPrice: Float) {
        this.lPrice = lPrice
    }

    fun gethPrice(): Float {
        return hPrice
    }

    fun sethPrice(hPrice: Float) {
        this.hPrice = hPrice
    }

    companion object {
        private const val serialVersionUID = -5521550206764531125L
    }
}
